Skip to main content
POST
/
v1
/
organizations
/
{organization_id}
/
projects
/
{project_id}
/
hosting
/
{id}
/
dns-records
/
create
[DNS] Create DNS record
curl --request POST \
  --url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/hosting/{id}/dns-records/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "name": "<string>",
  "record": "<string>",
  "ttl": 14400,
  "priority": 1
}
'
{
  "line": 123,
  "name": "<string>",
  "type": "<string>",
  "ttl": 123,
  "record": "<string>",
  "priority": 123
}

Documentation Index

Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <token> header. Token can be a JWT token or an API key (format: sk-onetsolutions-...).

Path Parameters

id
string<uuid>
required

Web hosting unique identifier

organization_id
string<uuid>
required

Organization unique identifier

project_id
string<uuid>
required

Project unique identifier

Body

application/json
type
enum<string>
required
  • A - A
  • AAAA - AAAA
  • CNAME - CNAME
  • MX - MX
  • TXT - TXT
  • SRV - SRV
  • CAA - CAA
Available options:
A,
AAAA,
CNAME,
MX,
TXT,
SRV,
CAA
name
string
required
Maximum string length: 255
record
string
required
Maximum string length: 1024
ttl
integer
default:14400
Required range: x >= 300
priority
integer
Required range: x >= 0

Response

DNS record created successfully

line
integer
required
name
string
required
type
string
required
ttl
integer
required
record
string
required
priority
integer | null